 |
 |
 |
 |
 |
 |
 |
|
|
 |
A-Kind-Of
relationship
|
|
Comparison
of Point and Circle
|
|
|
|
|
 |
 |
 |
 |
 |
 |
class
Point {
|
|
attributes:
|
|
int x, y
|
|
methods:
|
|
setX(int newX)
|
getX()
|
|
setY(int newY)
|
getY()
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
 |
 |
Conclusion: Knowing the properties of class Point we can
|
describe a
circle as a point plus a radius and methods to
|
|
access it.
|
|
|
|
|